<?xml version='1.0'?>

<gl_extension name="GL_ARB_map_buffer_range" reg_no="50">
	<tokens>
		<token name="GL_MAP_READ_BIT" value="0x0001"/>
		<token name="GL_MAP_WRITE_BIT" value="0x0002"/>
		<token name="GL_MAP_INVALIDATE_RANGE_BIT" value="0x0004"/>
		<token name="GL_MAP_INVALIDATE_BUFFER_BIT" value="0x0008"/>
		<token name="GL_MAP_FLUSH_EXPLICIT_BIT" value="0x0010"/>
		<token name="GL_MAP_UNSYNCHRONIZED_BIT" value="0x0020"/>
	</tokens>

	<functions>
		<function name="glMapBufferRange" return="GLvoid*">
			<params>
				<param type="GLenum" name="target"/>
				<param type="GLintptr" name="offset"/>
				<param type="GLsizeiptr" name="length"/>
				<param type="GLbitfield" name="access"/>
			</params>
		</function>
		<function name="glFlushMappedBufferRange" return="void">
			<params>
				<param type="GLenum" name="target"/>
				<param type="GLintptr" name="offset"/>
				<param type="GLsizeiptr" name="length"/>
			</params>
			<mappings>
				<mapping from="GL_APPLE_flush_buffer_range" name="glFlushMappedBufferRangeAPPLE"/>
			</mappings>
		</function>
	</functions>
</gl_extension>
